package xyz.maxwells.bigdata.dao;

import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import xyz.maxwells.bigdata.domain.data.Comment;

import java.util.List;

/**
 * Created by wuzusheng on 2018/5/13.
 */
public interface CommentRepository extends JpaRepository<Comment,Long>,JpaSpecificationExecutor<Comment> {
    List<Comment> findByTableName(String tableName, Sort sort);
    List<Comment> findByUserName(String userName);
}
